$(function() {
	//饼图模板
	var dom = document.getElementById("bookNum");
	var myChart = echarts.init(dom);
	var app = {};
	option = {
		tooltip: {
			trigger: 'item',
			formatter: '{a} <br/>{b}: {c} ({d}%)'
		},
		legend: {
			orient: 'vertical',
			left: 10,
			data: ['大床房预定数', '双人床预定数', '商务房预定数', '情侣房预定数']
		},
		series: [{
			name: '总量',
			type: 'pie',
			radius: ['50%', '70%'],
			avoidLabelOverlap: false,
			label: {
				normal: {
					show: false,
					position: 'center'
				},
				emphasis: {
					show: true,
					textStyle: {
						fontSize: '30',
						fontWeight: 'bold'
					}
				}
			},
			labelLine: {
				normal: {
					show: false
				}
			},
			data: [{
				    value:200,
					name: '大床房预定数',
				    /*data:[]*/

				},
				{
                    value:200,
					name: '双人床预定数',
                    /*data:[]*/
				},
				{
                    value:200,
					name: '商务房预定数',
					/*data : []*/
				},
				{
                    value:200,
					name: '情侣房预定数',
                   /* data : []*/
				}
			]
		}]
	};
	myChart.setOption(option);

});